package com.jz.netthings.application.providerCollection.bean;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 采浆记录-开机登录
 * </p>
 *
 * @author zyl
 * @since 2019-03-25
 */
public class RegistrationPoweron implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("mlogId")
    private String mlogId;
    /**
     * 机器码
     */
    private String apCode;
    /**
     * 开机时间
     */
    private Date poweronTime;
    /**
     * 设备注册时间
     */
    private Date deviceRegisterTime;
    /**
     * 护士登陆时间
     */
    private Date nurseRegistrationTime;
    /**
     * 护士注销时间
     */
    private Date nurseLogoutTime;
    /**
     * 本次采浆数据库名
     */
    private String dailyLogFilename;


    public String getMlogId() {
        return mlogId;
    }

    public void setMlogId(String mlogId) {
        this.mlogId = mlogId;
    }

    public String getApCode() {
        return apCode;
    }

    public void setApCode(String apCode) {
        this.apCode = apCode;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getPoweronTime() {
        return poweronTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setPoweronTime(Date poweronTime) {
        this.poweronTime = poweronTime;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getDeviceRegisterTime() {
        return deviceRegisterTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setDeviceRegisterTime(Date deviceRegisterTime) {
        this.deviceRegisterTime = deviceRegisterTime;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getNurseRegistrationTime() {
        return nurseRegistrationTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setNurseRegistrationTime(Date nurseRegistrationTime) {
        this.nurseRegistrationTime = nurseRegistrationTime;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getNurseLogoutTime() {
        return nurseLogoutTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setNurseLogoutTime(Date nurseLogoutTime) {
        this.nurseLogoutTime = nurseLogoutTime;
    }

    public String getDailyLogFilename() {
        return dailyLogFilename;
    }

    public void setDailyLogFilename(String dailyLogFilename) {
        this.dailyLogFilename = dailyLogFilename;
    }

    @Override
    public String toString() {
        return "RegistrationPoweron{" +
        "mlogId=" + mlogId +
        ", apCode=" + apCode +
        ", poweronTime=" + poweronTime +
        ", deviceRegisterTime=" + deviceRegisterTime +
        ", nurseRegistrationTime=" + nurseRegistrationTime +
        ", nurseLogoutTime=" + nurseLogoutTime +
        ", dailyLogFilename=" + dailyLogFilename +
        "}";
    }
}
